const HtmlWebpackPlugin = require("html-webpack-plugin");
const path = require("path");

module.exports = {
    entry:path.resolve(__dirname,'./src/main.js'),
    output:{
        filename:"boundle.js",
        path:path.resolve(__dirname,'./dist')
    },
    devServer:{
        port:"3000",
        
    },
    module:{
        rules:[
            {
                test:/\.css$/,
                use:[]
            }
        ]
    },
    mode:"development",
    plugins:[
        new HtmlWebpackPlugin({
            template:path.resolve(__dirname,'./public/index.html')
        })
    ]
}